package com.ziqikeji.xianyan.service.recommend;

import com.ziqikeji.xianyan.common.BaseService;
import com.ziqikeji.xianyan.entity.article.Article;
import com.ziqikeji.xianyan.entity.recommend.ArticleRecommend;
import com.ziqikeji.xianyan.repository.recommend.ArticleRecommendDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.List;

/**
 * 文章推荐
 * @author liuyu
 */
@Service
public class ArticleRecommendService extends BaseService<ArticleRecommend, ArticleRecommendDao> {

    @Autowired
    ArticleRecommendDao recommendDao;

    /**
     * 返回推荐的文章
     * @param article
     * @return
     */
    public ArticleRecommend queryByArticle(Article article){
         return this.recommendDao.queryByArticle(article);
    }



}
